<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateLoginNoticesTable extends Migration
{
    /**
     * Run the migrations.
     */
    public function up()
    {
        Schema::create('login_notices', function (Blueprint $table) {
            $table->increments('id');
            $table->string('title')->comment('公告标题');
            $table->text('content')->comment('公告内容');
            $table->string('subcribe')->comment('署名');
            $table->string('pub_date')->comment('发布日期');
            $table->tinyInteger('status')->default(0)->comment('状态1启用0禁用');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down()
    {
        Schema::dropIfExists('login_notices');
    }
}
